﻿using UnityEngine;

namespace HurricanePackage
{
    /// <summary>
    /// UGUI预制体窗体基类
    /// </summary>
    /// <typeparam name="V"></typeparam>
    public abstract class UGUIPrefabWnd<V> : UGUILoadWnd<V>
        where V : BasicView
    {
        private Transform m_parentTransform;
        protected UGUIPrefabWnd(LocalResAssetObject _assetObj,Transform _parentTransform) : base(_assetObj)
        {
            //绑定父节点
            m_parentTransform = View.transform.parent;
        }

        protected override Transform ParentTransform
        {
            get { return m_parentTransform; }
        }
    }
}